package com.ijiuchuang.jc_localization.bean.lite;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by 王伟 on 2016/6/29
 * Function :
 */
@Table("Station")
public class Station extends BaseModel {

    // 列名
    public static final String COL_ID = "id";
    public static final String COL_X = "x";
    public static final String COL_Y = "y";
    public static final String COL_MAP_ID = "mapID";
    public static final String COL_LIMIT = "rssiLimit";
    public static final String COL_MAC = "mac";
    public static final String COL_NUM = "num";
    public static final String COL_SHOWN = "isShown";
    public static final String COL_REMARK = "remark";

    @PrimaryKey(AssignType.AUTO_INCREMENT)
    @Column(COL_ID)
    private long id;

    @Column(COL_X)
    private int x;
    @Column(COL_Y)
    private int y;
    @Column(COL_MAP_ID)
    private long mapID;
    @Column(COL_LIMIT)
    private int limit;
    @Column(COL_MAC)
    private String mac;
    @Column(COL_NUM)
    private int num;
    @Column(COL_SHOWN)
    private boolean isShown;
    @Column(COL_REMARK)
    private String remark;

    public Station() {
    }

    @Override
    public String toString() {
        return "Station{" +
                "id=" + id +
                ", x=" + x +
                ", y=" + y +
                ", mapID=" + mapID +
                ", limit=" + limit +
                ", mac='" + mac + '\'' +
                ", num=" + num +
                ", isShown=" + isShown +
                ", remark='" + remark + '\'' +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public long getMapID() {
        return mapID;
    }

    public void setMapID(long mapID) {
        this.mapID = mapID;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public boolean isShown() {
        return isShown;
    }

    public void setShown(boolean shown) {
        isShown = shown;
    }

    public String isRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }
}
